
#include "basicsolver.h"

BasicSolver::BasicSolver() :
	matrix(0), _state(ssNotStarted)
{}

void BasicSolver::setMatrix(const SquareMatrix &mat) {
	matrix = mat;
	_state = ssNotStarted;
}

void BasicSolver::setFreeTerms(const std::vector<double> &vec) {
	freeTerms = vec;
	_state = ssNotStarted;
}

void BasicSolver::setState(BasicSolver::SolverState st) {
	_state = st;
}

BasicSolver::SolverState BasicSolver::state() const {
	return _state;
}

std::vector<double> BasicSolver::solution() const {
	return Xs;
}
